<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
 * 首页模块-修改密码
 */
class Dashboard extends AdminController {
    public $_validation = null;

    function __construct(){
        parent::__construct();
        $this->load->model('MOrder');
        $this->load->model('MUser');
        $this->load->model('MPromise');
    }

    public function index(){
        $arr = array();
        $arr['total_promise'] = $this->MPromise->getAmount();
        $arr['total'] = $this->MOrder->getTotal();
        $arr['total_week'] = $this->MOrder->getWeek();
        $arr['total_month'] = $this->MOrder->getMonth();
        $arr['user'] = $this->MUser->getTotal();
        $arr['order'] = $this->MOrder->getLatest();
        $arr['promise'] = $this->MPromise->getLatest();
        $this->assign('info',$arr);
        $this->layout();
    }

}
